home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xulapp / nsIXULAppInfo.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  198 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXULAppInfo.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXULAppInfo_h__
  6. #define __gen_nsIXULAppInfo_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIXULAppInfo */
  19. #define NS_IXULAPPINFO_IID_STR "a61ede2a-ef09-11d9-a5ce-001124787b2e"
  20.  
  21. #define NS_IXULAPPINFO_IID \
  22.   {0xa61ede2a, 0xef09, 0x11d9, \
  23.     { 0xa5, 0xce, 0x00, 0x11, 0x24, 0x78, 0x7b, 0x2e }}
  24.  
  25. /**
  26.  * A scriptable interface to the nsXULAppAPI structure. See nsXULAppAPI.h for
  27.  * a detailed description of each attribute.
  28.  *
  29.  * @status FROZEN - This interface is frozen for use by embedders and will
  30.  *                  not change in the future.
  31.  */
  32. class NS_NO_VTABLE nsIXULAppInfo : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXULAPPINFO_IID)
  36.  
  37.   /**
  38.    * @see nsXREAppData.vendor
  39.    * @returns an empty string if nsXREAppData.vendor is not set.
  40.    */
  41.   /* readonly attribute ACString vendor; */
  42.   NS_IMETHOD GetVendor(nsACString & aVendor) = 0;
  43.  
  44.   /**
  45.    * @see nsXREAppData.name
  46.    */
  47.   /* readonly attribute ACString name; */
  48.   NS_IMETHOD GetName(nsACString & aName) = 0;
  49.  
  50.   /**
  51.    * @see nsXREAppData.ID
  52.    * @returns an empty string if nsXREAppData.ID is not set.
  53.    */
  54.   /* readonly attribute ACString ID; */
  55.   NS_IMETHOD GetID(nsACString & aID) = 0;
  56.  
  57.   /**
  58.    * The version of the XUL application. It is different than the
  59.    * version of the XULRunner platform. Be careful about which one you want.
  60.    *
  61.    * @see nsXREAppData.version
  62.    * @returns an empty string if nsXREAppData.version is not set.
  63.    */
  64.   /* readonly attribute ACString version; */
  65.   NS_IMETHOD GetVersion(nsACString & aVersion) = 0;
  66.  
  67.   /**
  68.    * The build ID/date of the application. For xulrunner applications,
  69.    * this will be different than the build ID of the platform. Be careful
  70.    * about which one you want.
  71.    */
  72.   /* readonly attribute ACString appBuildID; */
  73.   NS_IMETHOD GetAppBuildID(nsACString & aAppBuildID) = 0;
  74.  
  75.   /**
  76.    * The version of the XULRunner platform.
  77.    */
  78.   /* readonly attribute ACString platformVersion; */
  79.   NS_IMETHOD GetPlatformVersion(nsACString & aPlatformVersion) = 0;
  80.  
  81.   /**
  82.    * The build ID/date of gecko and the XULRunner platform.
  83.    */
  84.   /* readonly attribute ACString platformBuildID; */
  85.   NS_IMETHOD GetPlatformBuildID(nsACString & aPlatformBuildID) = 0;
  86.  
  87. };
  88.  
  89. /* Use this macro when declaring classes that implement this interface. */
  90. #define NS_DECL_NSIXULAPPINFO \
  91.   NS_IMETHOD GetVendor(nsACString & aVendor); \
  92.   NS_IMETHOD GetName(nsACString & aName); \
  93.   NS_IMETHOD GetID(nsACString & aID); \
  94.   NS_IMETHOD GetVersion(nsACString & aVersion); \
  95.   NS_IMETHOD GetAppBuildID(nsACString & aAppBuildID); \
  96.   NS_IMETHOD GetPlatformVersion(nsACString & aPlatformVersion); \
  97.   NS_IMETHOD GetPlatformBuildID(nsACString & aPlatformBuildID); 
  98.  
  99. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  100. #define NS_FORWARD_NSIXULAPPINFO(_to) \
  101.   NS_IMETHOD GetVendor(nsACString & aVendor) { return _to GetVendor(aVendor); } \
  102.   NS_IMETHOD GetName(nsACString & aName) { return _to GetName(aName); } \
  103.   NS_IMETHOD GetID(nsACString & aID) { return _to GetID(aID); } \
  104.   NS_IMETHOD GetVersion(nsACString & aVersion) { return _to GetVersion(aVersion); } \
  105.   NS_IMETHOD GetAppBuildID(nsACString & aAppBuildID) { return _to GetAppBuildID(aAppBuildID); } \
  106.   NS_IMETHOD GetPlatformVersion(nsACString & aPlatformVersion) { return _to GetPlatformVersion(aPlatformVersion); } \
  107.   NS_IMETHOD GetPlatformBuildID(nsACString & aPlatformBuildID) { return _to GetPlatformBuildID(aPlatformBuildID); } 
  108.  
  109. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  110. #define NS_FORWARD_SAFE_NSIXULAPPINFO(_to) \
  111.   NS_IMETHOD GetVendor(nsACString & aVendor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVendor(aVendor); } \
  112.   NS_IMETHOD GetName(nsACString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  113.   NS_IMETHOD GetID(nsACString & aID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetID(aID); } \
  114.   NS_IMETHOD GetVersion(nsACString & aVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
  115.   NS_IMETHOD GetAppBuildID(nsACString & aAppBuildID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppBuildID(aAppBuildID); } \
  116.   NS_IMETHOD GetPlatformVersion(nsACString & aPlatformVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlatformVersion(aPlatformVersion); } \
  117.   NS_IMETHOD GetPlatformBuildID(nsACString & aPlatformBuildID) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlatformBuildID(aPlatformBuildID); } 
  118.  
  119. #if 0
  120. /* Use the code below as a template for the implementation class for this interface. */
  121.  
  122. /* Header file */
  123. class nsXULAppInfo : public nsIXULAppInfo
  124. {
  125. public:
  126.   NS_DECL_ISUPPORTS
  127.   NS_DECL_NSIXULAPPINFO
  128.  
  129.   nsXULAppInfo();
  130.  
  131. private:
  132.   ~nsXULAppInfo();
  133.  
  134. protected:
  135.   /* additional members */
  136. };
  137.  
  138. /* Implementation file */
  139. NS_IMPL_ISUPPORTS1(nsXULAppInfo, nsIXULAppInfo)
  140.  
  141. nsXULAppInfo::nsXULAppInfo()
  142. {
  143.   /* member initializers and constructor code */
  144. }
  145.  
  146. nsXULAppInfo::~nsXULAppInfo()
  147. {
  148.   /* destructor code */
  149. }
  150.  
  151. /* readonly attribute ACString vendor; */
  152. NS_IMETHODIMP nsXULAppInfo::GetVendor(nsACString & aVendor)
  153. {
  154.     return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156.  
  157. /* readonly attribute ACString name; */
  158. NS_IMETHODIMP nsXULAppInfo::GetName(nsACString & aName)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* readonly attribute ACString ID; */
  164. NS_IMETHODIMP nsXULAppInfo::GetID(nsACString & aID)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168.  
  169. /* readonly attribute ACString version; */
  170. NS_IMETHODIMP nsXULAppInfo::GetVersion(nsACString & aVersion)
  171. {
  172.     return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174.  
  175. /* readonly attribute ACString appBuildID; */
  176. NS_IMETHODIMP nsXULAppInfo::GetAppBuildID(nsACString & aAppBuildID)
  177. {
  178.     return NS_ERROR_NOT_IMPLEMENTED;
  179. }
  180.  
  181. /* readonly attribute ACString platformVersion; */
  182. NS_IMETHODIMP nsXULAppInfo::GetPlatformVersion(nsACString & aPlatformVersion)
  183. {
  184.     return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186.  
  187. /* readonly attribute ACString platformBuildID; */
  188. NS_IMETHODIMP nsXULAppInfo::GetPlatformBuildID(nsACString & aPlatformBuildID)
  189. {
  190.     return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192.  
  193. /* End of implementation class template. */
  194. #endif
  195.  
  196.  
  197. #endif /* __gen_nsIXULAppInfo_h__ */
  198.